<?php die;?>
<!--{if $CategoryRS|@count neq 0 }-->
<!--{assign var=cpath value='myfun'|GetDef:$CategoryRS->getPath()}-->
<!--{else}-->
<!--{assign var=cpath value=1}-->
<!--{/if}-->
<script type="text/javascript">var def=<!--{$cpath}-->;</script>
<script language="JavaScript">
function CheckForm()
{
 if (document.loginform.loginname.value.length == 0)
 {
  alert("用户名不能为空！");
  document.loginform.loginname.focus();
  return false;
 }

 if (document.loginform.password.value.length == 0)
 {
  alert("密码不能为空！");
  document.loginform.password.focus();
  return false;
 }

 if (document.loginform.checkcode.value.length == 0)
 {
  alert("验证码不能为空！");
  document.loginform.checkcode.focus();
  return false;
 }
  document.loginform.submit();
  return true;
}
</script>
<div id="header">
<div id="top">
  <div id="top-contain">
  <div id="top-logo"><a href="<!--{'micefun'|GetUrl:'index'}-->"><img src="<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/index/imgs/logo_word.gif" title="<!--{$smarty.const.MICE_TITLE}-->"/></a></div>
  <div id="top-right">
	<div class="menu-bg"></div>
	  <div id="loginform"><script>document.write(unescape('%3Ciframe name="cssframe" id="cssframe" width="0" height="0" %3E%3C/iframe%3E'))</script>
		
		<!--{if 'micefun'|MiceSession:'mu__userid'>0}-->
		用户名：<!--{'micefun'|MiceSession:'mu__loginname'}-->&nbsp;&nbsp;&nbsp;&nbsp<a href="<!--{$smarty.const.MICE_URL}-->index.php/user">用户中心</a>&nbsp;&nbsp;&nbsp;&nbsp<a href="<!--{$smarty.const.MICE_URL}-->index.php/logout">退出</a>
		<!--{else}-->
			<form name="loginform" method="post" action="<!--{$smarty.const.MICE_URL}-->index.php/login" onkeydown="if (event.keyCode==13) {return CheckForm()}" style="margin:0px;">
			<table><tr>
			<td>用户名&nbsp;<input name="loginname" type="text" size="10" style="height:10px">密码&nbsp;<input name="password" type="password" size="10" style="height:10px">验证码&nbsp;<input name="checkcode" type="text" size="10" style="height:10px">
			<img width="80" src="<!--{$smarty.const.MICE_URL}-->code.php" align="absmiddle" onClick="this.src=this.src+'/'" title="看不清?点击图片更新！" style="cursor:hand;"/><img src="imgs/login.gif" align="absmiddle" onClick="return CheckForm()" style="cursor:hand;"/>|<a href="./index.php/forgetpwd">忘记密码</a></td>
			<td>|<a href="./index.php/reg">注册用户</a></td>
			
			<td>|<a href="./index.php/guestbook">在线留言</a></td>
			</tr></table>
			</form>
		<!--{/if}-->
		</div>		
	<!-- <div id="top-links">> <a href="<!--{'micefun'|GetUrl:'map'}-->">网站地图</a> </div>-->
	
  </div>
  </div>
</div>
<div id="menu">
	<div id="menu-bg">
		<div id="menu-parent">
		<div class="menu-bg"></div>
			<ul>
			<!-- <a href="<!--{'micefun'|GetUrl:'index'}-->" class="menu-this" id="par1">网站首页</a> -->
			<!--{assign var=subsql value='WHERE parentid=0 AND isvisible=0 AND type LIKE \'article%\' ORDER BY orderid ASC'}-->
			<!--{foreach from='micefun'|CategoryList:$subsql:0:8 item=Category}-->
			<li><a href="<!--{'micefun'|ListUrl:$Category->getCategoryId()}-->" id="par<!--{$Category->getOrderid()}-->"><!--{$Category->getTitle()}--></a></li>
			<!--{/foreach}-->
			</ul>
			
		</div>  
		<div id="menu-son">
		<!--{assign var=subsql value='WHERE parentid=0 AND isvisible=0 AND type LIKE \'article%\' ORDER BY orderid ASC'}-->
		<!--{foreach from='micefun'|CategoryList:$subsql:0:8 item=Category}-->
			<div id="son<!--{$Category->getOrderid()}-->">
			<!--{assign var=subsql2 value='WHERE parentid='|cat:$Category->getCategoryId()|cat:' AND isvisible=0 AND type LIKE \'article%\' ORDER BY orderid ASC'}-->
			<!--{foreach from='micefun'|CategoryList:$subsql2:0:8 item=Category2 name=counter2}-->
			<!--{if $smarty.foreach.counter2.iteration>1}-->|<!--{/if}-->
			<a href="<!--{'micefun'|ListUrl:$Category2->getCategoryId()}-->"><!--{$Category2->getTitle()}--></a> 
			<!--{/foreach}-->
			</div>
		<!--{/foreach}-->
		</div>
	</div>
	<div id="search">
		<div class="menu-bg"></div>
		<div id="search-form">
			<form method="post" id="soform" name="soform" action="<!--{$smarty.const.MICE_URL}-->index.php/search">
				<table id="mrSCon" align="center">
					<tr><td><input type="text" class="form" name="keywords" value="搜索..." onfocus="if(this.value=='搜索...')value='';" onblur="if(this.value=='')value='搜索...'"></td>
					<td><input type="image" class="subutton" src="templates/default/index/imgs/magglass.gif"/></td></tr>
				</table>
			</form>
		</div>
	</div>
</div>
<script type="text/javascript" src="js/menu.js"></script>
</div>